<input type="hidden" id="skola_id" value="<?php echo $razred->getSkolaId() ?>" />

<div id="indicator" style="float:left; display: none;"><?php echo image_tag("ajax-loading_2.gif", array("alt" => __("Čuva se"))) ?></div>

  <table id="dnevnik_holder" class="form_holder" style="padding-top: 10px;clear:both;">
    <tr>
      <th><label class="txLabel"><?php echo __('Naslov') ?></label></th>
      <td><input name="naslov" id="naslov" maxlength="100" class="regInput" type="text" value=""></td>
    </tr>
    <tr>
      <th><label class="txLabel"><?php echo __('Tekst') ?></label></th>
      <td><textarea style="width:600px; height: 100px;" name="text" id="mail_content" class="regInput"></textarea></td>
    </tr>
    <tr>
      <th><label class="txLabel">&nbsp;</label></th>
      <td><a id="dugme" onclick="send_mail();" href="javascript: void(0)" class="button"><span>Pošalji</span></a><span id="complete"></span></td>
    </tr>

    <tr id="razred_<?php echo $razred->getId() ?>">
     <th><label class="txLabel">
       <span style="font-weight:bold;"><?php echo $razred ?></span><br />
       <a href="javascript:check_all('razred_<?php echo $razred->getId() ?>', 1)"> all</a><br />
       <a href="javascript:check_all('razred_<?php echo $razred->getId() ?>', 0)"> none</a>
     </label></th>
     <td>
       <table>
       <tr>
       <?php
       $br = 1;
       $br_ucenika = count($uceniks);
       foreach($uceniks as $id => $ime){?>
         <td>
           <input type='checkbox' value='<?php echo $id ?>' name='<?php echo $id ?>' /><?php echo $ime ?>
         </td>
         <?php
         if ($br % 5 == 0 and $br != $br_ucenika)
         {
           echo "</tr><tr>";
         }
         else if ($br == $br_ucenika)
         {
           echo "</tr>";
         }
         $br++;
       }?>
       </table>
     </td>
   </tr>

  </table>